using UnityEditor;
using UnityEngine;

namespace JufGame
{
	[CustomEditor(typeof(FeatureGraph))]
	public class FGraph_Inspector : Editor
	{
		FeatureGraph featureGraph;
		private void OnEnable()
		{
			featureGraph = target as FeatureGraph;
		}
		public override void OnInspectorGUI()
		{
			serializedObject.Update();
			
			base.OnInspectorGUI();
			if(GUILayout.Button("保存当前图信息"))
			{
				featureGraph.UI_InitGraph();	
			}
			
			serializedObject.ApplyModifiedProperties();
		}
	}
}
